package com.rongxue.mapper;

import com.rongxue.pojo.Rewards;
import com.rongxue.pojo.SUserRedenvelope;
import com.rongxue.pojo.SUserRedenvelopeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SUserRedenvelopeMapper {
    int countByExample(SUserRedenvelopeExample example);

    int deleteByExample(SUserRedenvelopeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SUserRedenvelope record);

    int insertSelective(SUserRedenvelope record);

    List<SUserRedenvelope> selectByExample(SUserRedenvelopeExample example);

    SUserRedenvelope selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SUserRedenvelope record, @Param("example") SUserRedenvelopeExample example);

    int updateByExample(@Param("record") SUserRedenvelope record, @Param("example") SUserRedenvelopeExample example);

    int updateByPrimaryKeySelective(SUserRedenvelope record);

    int updateByPrimaryKey(SUserRedenvelope record);
    //用户投资可用奖励
    List<Rewards> selectUseRewardsByMap(Map<String,Object> map);
}